<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{=T.accepted_language or 'en'}}">
  <head>
    <title>{{=response.title or request.application}}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    
    <meta http-equiv="content-script-type" content="text/javascript">
    {{response.files.append(URL(request.application,'static','base.css'))}}
    {{include 'web2py_ajax.html'}}

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-18521220-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
    
  </head>
  <body>
<!-- CSS common to most pages -->
<style>
.pagehelp {
    float: right;
    text-align: right;
    bold;
    }
#pagehelpcontent {
    width:40em;
    font-size:11px;
    font-family: Verdana, sans-serif;
}
#pagehelpcontent dt {
    float:left;
    margin-left:2em;
    margin-bottom:1em;
    }

#pagehelpcontent dd {
    margin-left:7em;
    margin-bottom:1em;
    }

#pagehelpcontent li {
    list-style-type:None;
    margin-bottom:1em;
}

#pagehelpcontent p {
    margin-bottom:1em;
}

.licenseicon {
    }
#licensenotice {
    text-align:left;
    text-justify:newspaper;
    }
.clickable {
    cursor: pointer;
    }
.hidden {
    display:none;
    }
.commentlink {
    color: SlateGray;
    font-size: 110%;
    }
.itemlabel {
    font-size: 110%;
    }
td.comments {
    background-color: Gainsboro;
    display:none;
    font-style: italic;
    width: 90%;
    }
#pagecontent p {
    width: 40em;
    }
</style>
<!--[if IE]>
<style>
.iewidthfix {
    width: 500px !important;
    height: 0px !important;
    }
</style> 
<![endif]-->

<!-------------------------------->
    <div class="wrapper">
      <table class="layout">
        <tr>
          <td colspan="2"  class="header">
            <h1>
              {{=A(response.title or request.application, _href=URL(request.application,'default','index'))}}
            </h1>            
            <h3>{{=response.subtitle or ''}}</h3>
          </td>
        </tr>
        <tr>
          <td colspan="3" class="statusbar">
            {{='/'.join(['',request.application,request.controller,request.function]+request.args)}}
        {{ if 'auth' in globals():}}
        [ {{if not auth.user:}}
        <a href="{{=URL(r=request,c='default', f='user/login')}}">{{=T('login')}}</a> |
        <a href="{{=URL(r=request,f='user/register')}}">{{=T('register')}}</a> |
        <a href="{{=URL(r=request,f='user/request_reset_password')}}">{{=T('lost password')}}</a>
        {{else:}}
        {{=auth.user.first_name}} |
        <a href="{{=URL(r=request,c='default', f='user/logout')}}">{{=T('logout')}}</a> |
        <a href="{{=URL(r=request,f='user/change_password')}}">{{=T('change password')}}</a> |
        <a href="{{=URL(r=request,c='default', f='user/profile')}}">{{=T('edit profile')}}</a>
        {{pass}} ]
        {{pass}}
          </td>
        </tr>
        <tr>
          <td class="expandable column2">
            <div class="flash">{{=response.flash or ''}}</div>
            <!--[if IE]>
            <div class="iewidthfix"></div>
            <![endif]-->
            <div id="helpme" 
                class="pagehelp clickable"
                onclick="$('#pagehelpcontent').slideToggle();$.sparkline_display_visible();">
            {{=IMG(_src=URL(r=request, c='static', f='question32.png'))}}
            </div>
            <div id="pagecontent">
            {{include}}
            </div>
          </td>
          <td class="width10em column1">
            {{if response.menu:}}
            <h2>{{=T('Main Menu')}}</h2>
            {{=MENU(response.menu)}}
            {{pass}}
            <p>&nbsp;</p>
            {{=MENU(response.menu1)}}
            {{pass}}
            <p>&nbsp;</p>
            {{=MENU(response.menu2)}}
            {{pass}}
            {{if response.menu_edit:}}
            <h2>{{=T('Edit This App')}}</h2>
            {{=MENU(response.menu_edit)}}
            {{pass}}
            <br />
            <hr/>
            <table style="background-color: #fff; padding: 1px;" cellspacing=0>
              <tr><td>
              <img src="http://groups.google.com/intl/en/images/logos/groups_logo_sm.gif"
                     height=24 width=112 alt="Google Groups">
              </td></tr>
              <tr><td style="text-align:center;" title="Visit this group for support and discussion">
              <b><a href="http://groups.google.com/group/peertool-users">PeerTool Users</a></b>
              </td></tr>
            </table>
            <hr/>
            <div class="clickable" onclick="$('#licensenotice').toggle('slow')">
            {{=IMG(_src=URL(r=request, c='static', f='agplv3-88x31.png'))}}
            </div>
            <div id="licensenotice">
            <small>
            {{=P(T('PeerTool is licensed under the GNU Affero General Public License, Version 3. Use the links below to view a copy of the license or download a copy of the source code.'))}}
            </small>
            </div>
            <div>
            <p><a href="http://www.gnu.org/licenses/agpl-3.0.html">
            {{=T('License')}}
            </a></p>
            <p><a href="http://code.google.com/p/peertool/">
            {{=T("Source")}}
            </a></p>
            </div>
          </td>
          <!--
               <td class="width10em column3">
                 <h2>Right Column</h2>
               </td>
          //-->
        </tr>
        <tr>
          <td colspan="10" class="footer">
            {{=T('Copyright')}} &copy; 2009 - 2010 Ellis &amp; Grant, Inc.
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            {{=T('Powered by')}} <a href="http://www.web2py.com">web2py</a>
          </td>
        </tr>
      </table>
    </div>
    <script type="text/javascript">
      var rpxJsHost = (("https:" == document.location.protocol) ? "https://" : "http://static.");
      document.write(unescape("%3Cscript src='" + rpxJsHost +
    "rpxnow.com/js/lib/rpx.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
      RPXNOW.overlay = true;
      RPXNOW.language_preference = 'en';
    </script>
  
  </body>
</html>
